from multiprocessing import Pipe

# conn1和conn2相当于是管道的两端,这个管道用于传输数据
conn1, conn2 = Pipe()

conn1.send("Hello from conn1")

print((conn2.recv()))